/**
  * Copyright 2019 bejson.com 
  */
package com.xingkeduo.dto.transter.paydetail;

import com.xingkeduo.dto.ShopsDaysTable;
import com.xingkeduo.dto.transter.shop.ShopsDTO;
import lombok.Data;

@Data
public class StorePayDetail {

    private String img_url;
    private String name;
    private String address;
    private String starttime;
    private String endtime;

    public void covert(ShopsDTO shopsDTO, ShopsDaysTable shopsDaysTable) {
        if(shopsDTO!=null){
            this.img_url=shopsDTO.getShopsImg();
            this.name=shopsDTO.getName();
            this.address=shopsDTO.getAddress();
        }
        if(shopsDaysTable!=null){
            this.starttime=shopsDaysTable.getStarttime();
            this.endtime=shopsDaysTable.getEndtime();
        }
    }
}